package com.example.fish;

import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@ToString
public class MessageTestBox<E> implements Serializable {
    Integer code = null;
    String message =null;
    E data = null;
    public MessageTestBox() {
    }

    public MessageTestBox(Integer code, String message,E data) {
        this.data = data;
        this.code = code;
        this.message = message;
    }
    public MessageTestBox(String message,E data) {
        this.data = data;
        this.code = 200;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public E getData() {
        return data;
    }

    public void setData(E data) {
        this.data = data;
    }
}
